package com.meida.module.bus.provider.handler;

    import com.meida.common.mybatis.entity.EntityMap;
    import com.meida.common.mybatis.interceptor.ExportInterceptor;
    import com.meida.common.mybatis.model.ResultBody;
    import com.meida.module.bus.client.entity.BusMaterialPlan100;
    import com.meida.module.bus.provider.service.BusMaterialPlan100Service;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Component;

    import java.util.List;
    import java.util.Map;
    @Component(value = "busPurchases100ExportHandler")
    public class BusPurchases100ExportHandler   implements ExportInterceptor<BusMaterialPlan100> {
    @Autowired
    private BusMaterialPlan100Service busMaterialPlan100Service;
    @Override
    public ResultBody initData(Map params) {
    List<EntityMap> busMaterialPlan100List = busMaterialPlan100Service.initPurchseDataplans(params);
        for (EntityMap map :busMaterialPlan100List) {
            map.put("isUpdate","否");
        }
    return ResultBody.ok(busMaterialPlan100List);
    }
    }
